﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Configuration;
using System.Text;

namespace SystemCommon
{
    public sealed class SysConfig
    {

        static string constr = ConfigurationManager.ConnectionStrings["backboneDB"].ConnectionString;
     
        
        private SysConfig()
        {
            constr = ConfigurationManager.ConnectionStrings["backboneDB"].ConnectionString;
        }
        /// <summary>
        /// 读取数据库连接
        /// </summary>
        /// <returns></returns>
        public static string GetDBConstr()
        {
            return ConfigurationManager.ConnectionStrings["backboneDB"].ConnectionString;
        }

        public static string DBConstr
        {
            get { return constr; }
        }

       
               
    }
}
